<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div id="contents">
<input type="hidden" id="vod_id" name="vod_id" value="{$vid|default=''}"> 
<div class="col-md-12 col-sm-12 col-xs-12 m10 pl0">
                <div id="toolbar" class="toolbar pull-left">
                <a href="{:url('part',array('vid'=>$vid))}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a> <a href="{:url('part/add',array('vid'=>$vid))}" data-name="添加分集" class="btn btn-success btn-add btn-editone"><i class="fa fa-plus"></i> 添加</a>
                <a  href="{:url('part/del')}" form="#list" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> 
              <a  href="{:url('part/status',array('status'=>1))}" form="#list" class="confirm btn btn-primary btn-del btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 审核</a>
            <a  href="{:url('part/status',array('status'=>0))}" form="#list" class="confirm btn btn-warning btn-del btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 未审</a>   
            <a  href="{:url('pic/down',array('tab'=>'role','col'=>2,'opt'=>1,'fields'=>'vid','value'=>$vid))}" form="#list" data-name="同步角色图片" class="btn btn-default btn-editone hidden-xs"><i class="fa fa-picture-o"></i> 同步图片</a>            
             <span id="selectedChks">已选择<strong></strong>记录</span>
             </div>
            <!-- /.toolbar -->
           </div>
    <!-- /.panel-tool -->
    <div class="tab-content list" id="list" method="post">
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                   <thead>
                    <tr>
                      <th style="text-align:center;vertical-align: middle; width:5%">
                      <label class="pretty success">
	                   <input type="checkbox" id="checkall" class="delcheckall"> 
	                    <label><i class="mdi mdi-check"></i></label>
	                  </label>
                      </th>
                      <th style="text-align:center;vertical-align: middle;">
                      {eq name="orders" value="id desc"}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'id','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'id','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">分集名</th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="oid desc"}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'oid','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">分集页数 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'oid','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">分集页数 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="hits desc"}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'hits','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">人气 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'hits','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">人气 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                       <th style="text-align:center;vertical-align: middle;" class="hidden-xs">{eq name="orders" value="uptime desc"}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'uptime','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">更新时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('part',array('vid'=>$vid,'prty'=>$prty,'stars'=>$stars,'status'=>$status,'type'=>'uptime','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">更新时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>                                                              
                      <th style="text-align:center;vertical-align: middle;">操作</th>
                    </tr>
                  </thead>                
               <tbody>
               {notempty name="list"}
               {volist name="list" id="vo"}
               <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align:middle; font-size:14px">
                <label class="pretty success">
                <input type="checkbox" name="id[]" value="{$vo['part_id']}" id="checkbox"> 
	            <label><i class="mdi mdi-check"></i></label>
	            </label>
                </td>
                 <td style="text-align:center;vertical-align: middle;">{$vo['part_id']}</td>
                

                
                <td style="text-align:center;vertical-align: middle;"><a href="javascript:;" class="editable editable-click text-link" data-id="{$vo['part_id']}" data-name="part_name" data-type="text" data-pk="{$vo['part_id']}" data-url="{:url('part/editable')}" data-title="修改分集名">{$vo.part_name}</a></td>
               <td style="text-align:center;vertical-align: middle;">{$vo.part_oid}</td>
<td style="text-align:center;vertical-align: middle;"><a href="javascript:;" class="editable editable-click text-link" data-id="{$vo['part_id']}" data-name="part_hits" data-type="text" data-pk="{$vo['part_id']}" data-url="{:url('part/editable')}" data-title="修改人气">{$vo.part_hits}</a></td>
                 <td align="center" class="hidden-xs">{$vo.part_uptime|date='Y-m-d H:i:s',###}</td>
                <td style="text-align:center;vertical-align: middle;">
                {eq name="vo.part_status" value="1"} <a class="btn btn-info btn-xs btn-facebook ajax-post" href="{:url('part/status',array('id'=> $vo['part_id'],'status'=>0))}">已审</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-post" href="{:url('part/status',array('id'=> $vo['part_id'],'status'=>1))}">未审</a>{/eq}
                <a href="{:url('part/edit',array('id'=>$vo['part_id']))}"  data-name="编辑{$vo['part_name']}剧情" class="btn btn-success btn-editone btn-xs"><i class="fa fa-pencil"></i> 编辑</a> <a href="{:url('part/del',array('id'=>$vo['part_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-post"><i class="fa fa-trash-o"></i> 删除</a>   
                  </td>
              </tr>
              {/volist}
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="15" >抱歉，没有找到相关内容！</td></tr>{/notempty} 
            </tbody>
                </table>
            </div>
            {gt name="list->lastPage()" value="1"}
           <div class="panel-page">
              <div class="pull-left panel-page-info hidden-xs"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div>
              <div class="panel-page-url ajax-page">
               <ul class="pagination"> {$list->render()} <div class="panel-page-select pull-left"><select class="select2 ajax-select" data-url="{:url_page(request()->action(),request()->param(),1)}"><option value="10" {eq name="limit" value="10"}selected{/eq}>10 条/页</option><option value="20" {eq name="limit" value="20"}selected{/eq}>20 条/页</option><option value="30" {eq name="limit" value="30"}selected{/eq}>30 条/页</option><option value="40" {eq name="limit" value="40"}selected{/eq}>40 条/页</option><option value="50" {eq name="limit" value="50"}selected{/eq}>50 条/页</option><option value="99" {eq name="limit" value="99"}selected{/eq}>99 条/页</option></select></div><div class="panel-page-jump "><input type="input" name="page" id="page" min="1" value="{$list->currentPage()}" class="form-control"/><input type="button" value="跳 转" data-url="{:url_page(request()->action(),request()->param())}" class="btn btn-default ajax-jump" /></div></ul>
              </div>
            </div>
           <!-- /.panel-page --> 
            {/gt}

    
         </div>
         <!-- /.panel-body --> 
          <!-- /.nav-tabs-custom -->
        </div>
        </div>
        </section>
        <div class="layer-footer"></div>
       <!-- /.box-footer -->   
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();
});	
</script>
</body>
</html>
